﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using EzDesk.Core.Model;

namespace EzDesk.Apps.Model.Attendance
{

    /// <summary>
    /// 用于记录一次对考勤评估信息的修改
    /// </summary>
    [DataContract]
    public class EvaluationModifyHistory:IModel
    {
        [DataMember]
        public Guid Id { get; set; }

        /// <summary>
        /// 被修改者的用户Id
        /// </summary>
        [DataMember]
        public Guid UserId { get; set; }

        /// <summary>
        /// 被修改的考勤评估时间
        /// </summary>
        [DataMember]
        public DateTime Date { get; set; }

        /// <summary>
        /// 修改者用户Id
        /// </summary>
        [DataMember]
        public Guid OperatorId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [DataMember]
        public DateTime ModifyOn { get; set; }

        /// <summary>
        /// 记录这次对评估信息的所有修改
        /// </summary>
        [DataMember]
        public IList<EvaluationModifyHistoryChangeItem> AttendanceEvaluationChangeList { get; set; }

        [DataMember]
        public SimpleUser Operator { get; set; }

        
    }
}
